import 'package:flutter/material.dart';
import 'package:kiomax/pages/location/location_select_page.dart';
import 'pages/login/splash_page.dart';
import 'utils/screen_util.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'KioMax',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
        useMaterial3: true,
      ),
      home: Builder(
        builder: (context) {
          // 初始化屏幕适配工具
          ScreenUtil.init(context);
          return const SplashPage();
        },
      ),
    );
  }
}
